package cn.ad.server.web.spring.model.jesgoo;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zooy on 17-1-24.
 */
public enum JesgooOperator {

    UNKNOWN(0, 0),
    CHINA_MOBILE(1, 46002),
    CHINA_UNICOM(2, 46001),
    CHINA_TELECOM(3, 46003);

    private int operator;

    private int cellularOperator;

    JesgooOperator(int operator, int cellularOperator) {
        this.operator = operator;
        this.cellularOperator = cellularOperator;
    }

    public final static Map<Integer, Integer> jesgooOperatorMap = new HashMap<>();

    static {
        for (JesgooOperator jesgooOperator : JesgooOperator.values()) {
            jesgooOperatorMap.put(jesgooOperator.operator, jesgooOperator.cellularOperator);
        }
    }

}
